import request from '@/utils/request'

// 查询 对策分析
export function getAllQueryTaskList(query) {
  return request({
    url: '/suggestionAnalysis/queryTaskList',
    method: 'get',
    params: query
  })
}

// 保存 灾害情景分析
export function saveDisasterScenario(data) {
  return request({
    url: '/suggestionAnalysis/saveDisasterScenario',
    method: 'post',
    data: data
  })
}

// 保存 年度风险应对策略建议
export function saveAnnualRisk(data) {
  return request({
    url: '/suggestionAnalysis/saveAnnualRisk',
    method: 'post',
    data: data
  })
}

// 保存 应急备灾对策
export function saveEmergencyDisaster(data) {
  return request({
    url: '/suggestionAnalysis/saveEmergencyDisaster',
    method: 'post',
    data: data
  })
}

// 保存 应急处置对策
export function saveEmergencyDisposal(data) {
  return request({
    url: '/suggestionAnalysis/saveEmergencyDisposal',
    method: 'post',
    data: data
  })
}

// 获取 区县或者地市
export function getArea(isCity) {
  return request({
    url: '/suggestionAnalysis/getDivisionByTaskDistrict',
    method: 'get',
    params:isCity,
  })
}